// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.common.mybatis.handlers.SysFileListTypeHandler;
import com.fowo.api.sys.entity.*;
import com.fowo.api.sys.entity.SysFile;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * OtherPayables
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "other_payables", autoResultMap = true)
@Schema(title = "其他应付款")
public class OtherPayables implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 其他应付单号
   */
  @TableField(value = "`other_payables_code`")
  @Schema(title = "其他应付单号")
  private String otherPayablesCode;

  /**
   * 费用单号
   */
  @TableField(value = "`fee_code`")
  @Schema(title = "费用单号")
  private String feeCode;

  /**
   * 应付对象
   */
  @TableField(value = "`should_obj`")
  @Schema(title = "应付对象")
  private String shouldObj;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 状态
   */
  @TableField(value = "`status`")
  @Schema(title = "状态")
  private String status;

  /**
   * 应付费用类型
   */
  @TableField(value = "`should_fee_type`")
  @Schema(title = "应付费用类型")
  private String shouldFeeType;

  /**
   * 应付金额
   */
  @TableField(value = "`should_money`")
  @Schema(title = "应付金额")
  private java.math.BigDecimal shouldMoney;

  /**
   * 已付金额
   */
  @TableField(value = "`actually_paid`")
  @Schema(title = "已付金额")
  private java.math.BigDecimal actuallyPaid;

  /**
   * 未付金额
   */
  @TableField(value = "`unpaid_money`")
  @Schema(title = "未付金额")
  private java.math.BigDecimal unpaidMoney;

  /**
   * 申请中
   */
  @TableField(value = "`in_application`")
  @Schema(title = "申请中")
  private java.math.BigDecimal inApplication;

  /**
   * 未申请
   */
  @TableField(value = "`not_apply`")
  @Schema(title = "未申请")
  private java.math.BigDecimal notApply;

  /**
   * 费用提交人
   */
  @TableField(value = "`fee_submitter`")
  @JoinField(SysUser.class)
  @Schema(title = "费用提交人")
  private Long feeSubmitter;

  /**
   * 预计付款时间
   */
  @TableField(value = "`predict_fk_time`")
  @Schema(title = "预计付款时间")
  private java.util.Date predictFkTime;

  /**
   * 支付方式
   */
  @TableField(value = "`pay_type`")
  @Schema(title = "支付方式")
  private String payType;

  /**
   * 户名
   */
  @TableField(value = "`user_name`")
  @Schema(title = "户名")
  private String userName;

  /**
   * 开户行
   */
  @TableField(value = "`bank_of_deposit`")
  @Schema(title = "开户行")
  private String bankOfDeposit;

  /**
   * 账户
   */
  @TableField(value = "`account`")
  @Schema(title = "账户")
  private String account;

  /**
   * 备注
   */
  @TableField(value = "`remarks`")
  @Schema(title = "备注")
  private String remarks;

  /**
   * 附件
   */
  @TableField(value = "`files`", typeHandler = SysFileListTypeHandler.class)
  @Schema(title = "附件")
  private List<SysFile> files;
}
